package com.jk.myimkit.imkit.widget.provide;

import android.content.Context;
import android.text.Spannable;
import android.text.SpannableString;
import android.view.View;
import android.view.ViewGroup;

import com.jk.myimkit.imkit.emoticon.AndroidEmoji;
import com.jk.myimkit.imkit.model.ProviderTag;
import com.jk.myimkit.imkit.model.UIMessage;

import io.rong.message.HandshakeMessage;

@ProviderTag(
        messageContent = HandshakeMessage.class,
        showPortrait = false,
        centerInHorizontal = true,
        hide = true
)
public class HandshakeMessageItemProvider extends IContainerItemProvider.MessageProvider<HandshakeMessage> {
    public HandshakeMessageItemProvider() {
    }

    public View newView(Context context, ViewGroup group) {
        return null;
    }

    public Spannable getContentSummary(HandshakeMessage data) {
        return null;
    }

    public Spannable getContentSummary(Context context, HandshakeMessage data) {
        return data != null && data.getContent() != null ? new SpannableString(AndroidEmoji.ensure(data.getContent())) : null;
    }

    public void onItemClick(View view, int position, HandshakeMessage content, UIMessage message) {
    }

    public void bindView(View v, int position, HandshakeMessage content, UIMessage data) {
    }
}
